package com.manpower.model;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * MpPay entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mp_pay", catalog = "manpower")
public class MpPay implements java.io.Serializable {

	// Fields

	private String id;
	private String payDisplayId;
	private String payName;
	private String payDescription;
	private Integer payActivation;
	private Set<MpPayItem> mpPayItems = new HashSet<MpPayItem>(0);

	// Constructors

	/** default constructor */
	public MpPay() {
	}

	/** minimal constructor */
	public MpPay(String id) {
		this.id = id;
	}

	/** full constructor */
	public MpPay(String id, String payDisplayId, String payName,
			String payDescription, Integer payActivation,
			Set<MpPayItem> mpPayItems) {
		this.id = id;
		this.payDisplayId = payDisplayId;
		this.payName = payName;
		this.payDescription = payDescription;
		this.payActivation = payActivation;
		this.mpPayItems = mpPayItems;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "pay_display_id", length = 200)
	public String getPayDisplayId() {
		return this.payDisplayId;
	}

	public void setPayDisplayId(String payDisplayId) {
		this.payDisplayId = payDisplayId;
	}

	@Column(name = "pay_name", length = 200)
	public String getPayName() {
		return this.payName;
	}

	public void setPayName(String payName) {
		this.payName = payName;
	}

	@Column(name = "pay_description", length = 200)
	public String getPayDescription() {
		return this.payDescription;
	}

	public void setPayDescription(String payDescription) {
		this.payDescription = payDescription;
	}

	@Column(name = "pay_activation")
	public Integer getPayActivation() {
		return this.payActivation;
	}

	public void setPayActivation(Integer payActivation) {
		this.payActivation = payActivation;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "mpPay")
	public Set<MpPayItem> getMpPayItems() {
		return this.mpPayItems;
	}

	public void setMpPayItems(Set<MpPayItem> mpPayItems) {
		this.mpPayItems = mpPayItems;
	}

}